package com.gitee.cirnochat.file.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 表情包项表
 * @TableName emoji_pack_item
 */
@TableName(value ="emoji_pack_item")
@Data
public class EmojiPackItemDetail implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 表情包ID，关联emoji_pack表
     */
    @TableField(value = "emoji_pack_id")
    private Long emojiPackId;

    /**
     * 图片文件ID，关联file_storage_record表
     */
    @TableField(value = "file_id")
    private Long fileId;

    /**
     * 图片url
     */
    @TableField(value = "file_url")
    private String fileUrl;

    /**
     * 排序
     */
    @TableField(value = "sort_order")
    private Integer sortOrder;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}